import Layout from '/@/layouts/Index.vue';
//makets 相关路由
const routes = [
  {
    path: '/',
    redirect: '/login',
    component: Layout,
    children: [
      {
        path: '/home',
        component: () => import('/@/pages/home/Home.vue'),
        meta: {
          title: 'Home',
          keepAlive: true,
          bottomBar: true,
        },
      },
      {
        path: '/fund',
        component: () => import('/@/pages/fund/Fund.vue'),
        meta: {
          title: 'Fund',
          keepAlive: false,
          bottomBar: true,
        },
      },
      {
        path: '/makets',
        component: () => import('/@/pages/makets/Makets.vue'),
        meta: {
          title: 'makets',
          keepAlive: true,
          bottomBar: true,
        },
      },
      {
        path: '/me',
        component: () => import('/@/pages/me/Me.vue'),
        meta: {
          title: 'me',
          bottomBar: true,
        },
      },
      {
        path: '/trade',
        component: () => import('/@/pages/trade/Trade.vue'),
        meta: {
          title: 'trade',
          keepAlive: true,
          bottomBar: false,
        },
      },
      {
        path: '/login',
        component: () => import('/@/pages/login/Login.vue'),
        meta: {
          title: 'login',
          keepAlive: false,
        },
      },
      {
        path: '/register',
        component: () => import('/@/pages/register/Register.vue'),
        meta: {
          title: 'register',
          keepAlive: false,
        },
      },
      // {
      //   path: '/resetPassword',
      //   component: () => import('/@/pages/login/ResetPassword.vue'),
      //   meta: {
      //     title: 'resetPassword',
      //     keepAlive: false,
      //   },
      // },
      {
        path: '/privacy',
        component: () => import('/@/pages/login/Privacy.vue'),
        meta: {
          title: 'privacy',
          keepAlive: false,
        },
      },
      {
        path: '/welfareCenter',
        component: () => import('/@/pages/home/WelfareCenter.vue'),
        meta: {
          title: 'welfareCenter',
          keepAlive: false,
        },
      },
      {
        path: '/me/teams',
        component: () => import('/@/pages/me/Team.vue'),
        meta: {
          title: 'team',
        path: '/me/recharge',
        component: () => import('/@/pages/me/Recharge.vue'),
        meta: {
          title: 'recharge',
          keepAlive: false,
        },
      },
      },
      {
        path: '/me/withdraw',
        component: () => import('/@/pages/me/Withdraw.vue'),
        meta: {
          title: 'withdraw',
          keepAlive: false,
        },
      },
      {
        path: '/me/bank',
        component: () => import('/@/pages/me/Bank.vue'),
        meta: {
          title: 'bank',
          keepAlive: false,
        },
      },
      {
        path: '/me/addBank',
        component: () => import('/@/pages/me/AddBank.vue'),
        meta: {
          title: 'addBank',
          keepAlive: false,
        },
      },
      {
        path: '/me/passwordSettings',
        component: () => import('/@/pages/me/PasswordSettings.vue'),
        meta: {
          title: 'passwordSettings',
          keepAlive: false,
        },
      },
      {
        path: '/me/kyc',
        component: () => import('/@/pages/me/Kyc.vue'),
        meta: {
          title: 'kyc',
          keepAlive: false,
        },
      },
      {
        path: '/me/customer',
        component: () => import('/@/pages/me/Customer.vue'),
        meta: {
          title: 'customer',
          keepAlive: false,
        },
      },
      {
        path: 'me/recharge',
        component: () => import('/@/pages/me/Recharge.vue'),
        meta: {
          title: 'recharge',
          keepAlive: false,
        },
      },
      {
        path: 'me/aboutUs',
        component: () => import('/@/pages/me/AboutUs.vue'),
        meta: {
          title: 'aboutUs',
          keepAlive: false,
        },
      },
      {
        path: 'me/beginnerGuide',
        component: () => import('/@/pages/me/BeginnerGuide.vue'),
        meta: {
          title: 'beginnerGuide',
          keepAlive: false,
        },
      },
      {
        path: 'me/beginnerGuideDetail',
        component: () => import('/@/pages/me/BeginnerGuideDetail.vue'),
        meta: {
          title: 'beginnerGuideDetail',
          keepAlive: false,
        },
      },
    ],
  },
];

export default routes;
